CREATE DATABASE  IF NOT EXISTS `gscrickettest` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `gscrickettest`;
-- MySQL dump 10.13  Distrib 5.5.16, for Win32 (x86)
--
-- Host: localhost    Database: gscrickettest
-- ------------------------------------------------------
-- Server version	5.5.8

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `matchplayer`
--

DROP TABLE IF EXISTS `matchplayer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `matchplayer` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `PlayerId` int(11) DEFAULT NULL,
  `MatchId` int(11) DEFAULT NULL,
  `RunsScored` int(11) DEFAULT NULL,
  `RunsConceeded` int(11) DEFAULT NULL,
  `BallsPlayed` int(11) DEFAULT NULL,
  `OversBowled` double DEFAULT NULL,
  `WicketsTaken` int(11) DEFAULT NULL,
  `NotOut` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `matchteam`
--

DROP TABLE IF EXISTS `matchteam`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `matchteam` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `TeamId` int(11) DEFAULT NULL,
  `MatchId` int(11) DEFAULT NULL,
  `HasWon` tinyint(1) DEFAULT NULL,
  `RunsScored` int(11) DEFAULT NULL,
  `OversPlayed` double DEFAULT NULL,
  `RunsConceeded` int(11) DEFAULT NULL,
  `OversBowled` double DEFAULT NULL,
  `Wickets` int(11) DEFAULT NULL,
  `Extras` int(11) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `player`
--

DROP TABLE IF EXISTS `player`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `player` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) DEFAULT NULL,
  `TeamId` int(11) DEFAULT NULL,
  `TotalRunsScored` int(11) DEFAULT NULL,
  `TotalOversPlayed` int(11) DEFAULT NULL,
  `TotalOversBowled` double DEFAULT NULL,
  `TotalRunsConceeded` int(11) DEFAULT NULL,
  `TotalWicketsTaken` int(11) DEFAULT NULL,
  `TotalMatchPlayed` int(11) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `superover`
--

DROP TABLE IF EXISTS `superover`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `superover` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `MatchId` int(11) DEFAULT NULL,
  `Team_A_RunsScored` int(11) DEFAULT NULL,
  `Team_A_Wickets` int(11) DEFAULT NULL,
  `Team_B_RunsScored` int(11) DEFAULT NULL,
  `Team_B_Wickets` int(11) DEFAULT NULL,
  `Team_A_Bowler` int(11) DEFAULT NULL,
  `Team_B_Bowler` int(11) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `team`
--

DROP TABLE IF EXISTS `team`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `team` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) DEFAULT NULL,
  `CaptainId` int(11) DEFAULT NULL,
  `GroupId` int(11) DEFAULT NULL,
  `Points` int(11) DEFAULT NULL,
  `RunRate` double DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tourgroup`
--

DROP TABLE IF EXISTS `tourgroup`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tourgroup` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tourmatch`
--

DROP TABLE IF EXISTS `tourmatch`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tourmatch` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `SequenceNumber` int(11) DEFAULT NULL,
  `Team_A_Id` int(11) DEFAULT NULL,
  `Team_B_Id` int(11) DEFAULT NULL,
  `WinnerTeam_Id` int(11) DEFAULT NULL,
  `Team_A_RunsScored` int(11) DEFAULT NULL,
  `Team_A_OversPlayed` double DEFAULT NULL,
  `Team_A_OversBowled` int(11) DEFAULT NULL,
  `Team_A_NoOfWickets` int(11) DEFAULT NULL,
  `Team_B_RunsScored` int(11) DEFAULT NULL,
  `Team_B_OversPlayed` double DEFAULT NULL,
  `Team_B_OversBowled` int(11) DEFAULT NULL,
  `Team_B_NoOfWickets` int(11) DEFAULT NULL,
  `TossWonByTeamId` int(11) DEFAULT NULL,
  `FirstInningsTeamId` int(11) DEFAULT NULL,
  `MatchDate` datetime DEFAULT NULL,
  `IsCancelled` tinyint(1) DEFAULT NULL,
  `SuperOverId` int(11) DEFAULT NULL,
  `MOM_PlayerId` int(11) DEFAULT NULL,
  `Umpire_A_Id` int(11) DEFAULT NULL,
  `Umpire_B_Id` int(11) DEFAULT NULL,
  `ThirdUmpireId` int(11) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `umpire`
--

DROP TABLE IF EXISTS `umpire`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `umpire` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2013-04-30 12:59:30
